package com.example.android.commitcontent.ime.beans;

public class PinYinCharacter {

    public enum Type {
        ShengMu, YunMu, Pinyin, SplitSymbol
    }

    public String text;
    public String displayText;
    public Type type;

    public PinYinCharacter() {
        type = Type.SplitSymbol;
        text = "'";
        displayText = "'";
    }

    public PinYinCharacter(String text, Type type) {
        this.text = text;
        this.displayText = text;
        this.type = type;
    }

    public PinYinCharacter(String text, String displayText, Type type) {
        this.text = text;
        this.displayText = displayText;
        this.type = type;
    }

    public boolean isSymbol() {
        return this.type == PinYinCharacter.Type.SplitSymbol;
    }

}
